import RouteView from "@/components/RouteView.vue";
 const adminRouters = [
    {
        path: "admin",
        name: "Admin",
        // 通过 roles 字段 对 路由 进行 角色 区分，分权判断
        meta: { title: "用户管理", icon: "User"},
        component: RouteView,
        children: [
            {
                path: "auth",
                name: "AdminAuth",
                meta: { title: "用户列表" },
                component: () => import("@/views/admin/AuthList.vue")
            },
            {
                path: "role",
                name: "AdminRole",
                meta: { title: "角色列表" },
                component: () => import("@/views/admin/RoleList.vue")
            }
        ]
    },
];

export default adminRouters

